<?php
 namespace app\api\controller; use app\common\controller\Api; class Demo extends Api { protected $noNeedLogin = array("\x74\x65\x73\164", "\x74\x65\163\x74\61"); protected $noNeedRight = array("\x74\x65\x73\x74\x32"); public function test() { $this->success("\xe8\xbf\224\345\x9b\236\346\210\x90\345\212\237", $this->request->param()); } public function test1() { $this->success("\350\277\224\xe5\233\x9e\346\210\x90\xe5\x8a\237", ["\x61\x63\164\151\157\156" => "\164\145\163\x74\61"]); } public function test2() { $this->success("\xe8\xbf\x94\xe5\233\x9e\346\x88\x90\xe5\x8a\x9f", ["\x61\143\x74\x69\x6f\156" => "\x74\x65\x73\164\62"]); } public function test3() { $this->success("\350\277\224\xe5\x9b\236\346\x88\x90\345\212\237", ["\x61\x63\x74\151\x6f\156" => "\164\x65\163\x74\63"]); } }